package com.sjms._03_创建_抽象工厂;

/**
 * 上海咖啡工厂
 */
class ShangHaiCoffeeFactory extends AbstractCoffeeFactory {

    public Coffee createCoffee(String type) {
        Coffee c = null;
        switch (type) {
            case "星巴克":
                c = new 星巴克("上海特色");
                break;
            case "雀巢":
                c = new 雀巢("上海特色");
                break;
            default:
                System.out.println("上海特色：" + type + " :不存在！！！\n");
                break;
        }
        return c;
    }
}
